<div class="full-screen">
    <header>
    <div class="a-bar">
        <div class="a-name">
		<{if $gys}>
            <{if $gys==1}><{t}>供应商<{/t}><{elseif $gys==2}><{t}>集货员<{/t}><{/if}><{t}>中心<{/t}>
        <{else}>
            <{t}>会员中心<{/t}>
	    <{/if}>
        </div>
    </div>
    </header>
    <div class="section">
        <div class="mem-info c-fix">
            <div class="mem-avatar">
                <{if $member.lv_logo!=''}>
                    <img src="<{$member.lv_logo|storager:'s'}>">
                <{else}>
                    <{img src="sprites/default-avatar.png" alt=""}>
                <{/if}>
            </div>
            <div class="mem-base c-fix">
                <div class="fix-f">
                    <div class="d-line c-fix">
                        <div class="mem-name">
                            <{$member.uname}>
                        </div>
						<{if !$gys}>
						<div class="mem-experience">
                            <a href="<{link app=b2c ctl=wap_member act=security}>"><{t}>修改密码<{/t}></a>
                        </div>
						<{/if}>
                    </div>
                    <div class="mem-level">
                        <span class="icon orange">
						     <{if $gys}>
							     <{if $gys==1}><{t}>供应商<{/t}><{elseif $gys==2}><{t}>集货员<{/t}><{/if}>
							 <{else}>
                                 <{$member.levelname}>
							 <{/if}>
                        </span>
						<{if !$gys}>
                        <!--<div class="mem-experience">
                            <{t}>经验值：<{/t}><{$member.experience}>
                        <div>-->
						<{/if}>
                    </div>
					<{if !$gys}>
                    <div class="d-line">
                        <{if $switch_lv.switch_type == 0 && $switch_lv.show eq 'YES'}>
                        <{t}>积分累积至<{/t}>
                        <span class="f-red"><{$switch_lv.lv_data}></span>
                        <{t}>可成为<{/t}>
                        <{$switch_lv.lv_name}>
                        <{/if}>
                    </div>
					<{/if}>
                </div>
            </div>

            <{if $gys}>
                <{if $gys==1}>
				    <!-- 供应商菜单 -->
				    <div class="mem-menu">
						<div class="col2">
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='manager_goods'}>" class="btn">
									<{t}>商品管理<{/t}>
								</a>
							</div>
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='unconfirmed'}>" class="btn">
									<{t}>未确认<{/t}>
								</a>
							</div>
						</div>
						<div class="col2" style="padding-top:10px;">
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='confirmed_noship'}>" class="btn">
									<{t}>已确认(未发货)<{/t}>
								</a>
							</div>
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='confirmed_ship'}>" class="btn">
									<{t}>已确认(已发货)<{/t}>
								</a>
							</div>
						</div>
						<div class="col2" style="padding-top:10px;">
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='plan'}>" class="btn">
									<{t}>出货计划<{/t}>
								</a>
							</div>
							<div class="col">
								<a href="<{link app=b2c ctl='wap_member' full='1' act='shipment'}>" class="btn">
									<{t}>出货查询<{/t}>
								</a>
							</div>
						</div>
					</div>
					
				<{elseif $gys==2}>
				    <!-- 集货员菜单 -->
                    <div class="mem-menu">
						<div class="col2">
							<div class="col">
								<a href="<{link app=b2c ctl='wap_goodscollection' full='1' act='index'}>" class="btn">
									<{t}>集货<{/t}>
								</a>
							</div>
						</div>
					</div>
				<{/if}>
			<{else}>
                      <{if $deposit_status == true}>
            <div class="gb mem-deposit">
                <div class="d-line">
                    <div class="col">
                        <{t}>预存款余额：<{/t}>
                        <span class="f-red"><{$member.advance|cur_odr}></span>
                    </div>
                    <div class="col" style="border-top:1px solid #ccc;padding-top:6px;margin-top:6px;">
                        <!--<a href="<{link app=b2c ctl='wap_member' full='1' act='deposit'}>">
                            <{t}>充值<{/t}>
                            <i class="arr right"></i>
                        </a>-->
                        <a href="<{link app=b2c ctl='wap_member' full='1' act='balance'}>">
                            <{t}>交易记录<{/t}>
                            <i class="arr right"></i>
                        </a>
                    </div>
                </div>
            </div>
                      <{/if}>
            <!--<div class="gb integration">
                <div class="d-line box">
                    <div class="col">
                        <{t}>账户总积分：<{/t}><{$member.point}>
                        <br />
                        <{if $extend_point_html}>
                        <{$extend_point_html}>
                        <{/if}>
                    </div>
                    <div class="col">
                        <a href="<{link app=b2c ctl='wap_member'  full='1' act='point_history'}>">
                            <{t}>查看历史积分<{/t}>
                            <i class="arr right"></i>
                        </a>
                    </div>
                </div>
            </div>-->

            <div class="mem-menu">
                <div class="col2">
                    <div class="col">
                        <a href="<{link app=b2c ctl='wap_member' full='1' act='orders'}>" class="btn">
                            <{t}>订单<{/t}>
                        </a>
                    </div>
                    <div class="col">
                        <a href="<{link app=b2c ctl='wap_cart' full='1' act='index'}>" class="btn">
                            <{t}>购物车<{/t}>
                        </a>
                        <i id="cartNum" class="icon red"></i>
                    </div>
                </div>
				<div class="col2">
                    <div class="col">
                        <a href="<{link app=b2c ctl='wap_member' full='1' act='coupon'}>" class="btn">
                            <{t}>优惠券<{/t}>
                        </a>
                    </div>
                    <{if $comment_switch_discuss == 'on'}>
                    <div class="col">
                        <a href="<{link app=b2c ctl='wap_member' full='1' act='nodiscuss'}>" class="btn">
                            <{t}>未评价商品<{/t}>
                        </a>
                    </div>
                    <{/if}>
                </div>
            </div>
			<{/if}>
        </div>
    </div>
    <{if !$gys}>
    <div class="section">
        <div class="mem-fav-list">
            <a class="title" href="<{link app=b2c ctl=wap_member act=favorite}>">
                <{t}>我的收藏<{/t}>
                <i class="arr right"></i>
            </a>
            <{if $favorite}>
            <div class="box">
            <{foreach from=$favorite item="favorite" name="favorite"}>
                <a class="mem-fav-item" href="<{link app=b2c ctl=wap_product act=index arg0=$favorite.spec_desc_info.0.product_id}>">
                <img style="width:116px; height:120px;overflow:hidden;" src="<{if $favorite.udfimg == 'true'}><{$favorite.thumbnail_pic|default:$defaultImage|storager:'s'}><{else}><{$favorite.image_default_id|default:$defaultImage|storager:'s'}><{/if}>" alt="<{$favorite.name}>" />
                </a>
            <{/foreach}>
            </div>
            <{else}>
            <div class="box"><{t}>暂无收藏<{/t}></div>
            <{/if}>
        </div>	
    </div>
	<{/if}>
</div>

<script>
    var e = $.fn.cookie('S[CART_NUMBER]')?$.fn.cookie('S[CART_NUMBER]'):'0';
    if(e) $("#cartNum").text(e);
</script>

